export function fomatter(data, init, len, names) {
  
  let ans = {};

  if (!Array.isArray(data) || data.length === 0) {
    names.forEach((v, ind) => {
      ans[v] = init[ind]
    })
    return ans
  }

  if (data.length < len) {
    return false;
  }

  names.forEach((v, ind) => {
    ans[v] = data[ind] ? data[ind].split('%%')[0] : data[ind]
  })

  return ans;
}